import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from '../components/Login.vue'
// 导入element-ui组建库
import Elementui from 'element-ui'
// 导入组件相关样式
import "element-ui/lib/theme-chalk/index.css"
//配置vue插件
Vue.use(Elementui)

Vue.use(VueRouter)

const routes = [
    { path: '/', redirect: '/login' },
    { path: '/login', component: Login }
]

const router = new VueRouter({
    routes
})

export default router